<template>
  <div class="app-container">
    <el-container>
      <el-header>{{dataList.taskPlan.ticketName}}</el-header>
      <el-tag size="small">已验收</el-tag>
      <el-descriptions>
        <el-descriptions-item label="验收工单编号">{{dataList.acceptInf.acceptNum}}</el-descriptions-item>
        <el-descriptions-item label="所属区队">{{dataList.taskPlan.parentDeptName}}</el-descriptions-item>
        <el-descriptions-item label="班组">{{dataList.taskPlan.deptName}}</el-descriptions-item>
        <el-descriptions-item label="班组长">{{dataList.taskPlan.morName}}</el-descriptions-item>
        <el-descriptions-item label="施工人">{{dataList.worker}}</el-descriptions-item>
      </el-descriptions>
      <el-descriptions title="任务详情">
        <el-descriptions-item label="施工地点">{{dataList.taskPlan.borerLoc}}</el-descriptions-item>
        <el-descriptions-item label="钻机编号">{{dataList.borerInf.borerNum}}</el-descriptions-item>
        <el-descriptions-item label="钻机型号">{{dataList.borerInf.borerType}}</el-descriptions-item>
        <el-descriptions-item label="钻孔编号">{{dataList.drillInf.borerId}}</el-descriptions-item>
        <el-descriptions-item label="钻孔类型">{{dataList.drillInf.borerType}}</el-descriptions-item>
        <el-descriptions-item label="计划进尺">{{dataList.taskPlan.poreDepth}}</el-descriptions-item>
      </el-descriptions>
      <el-descriptions title="人工填报内容">
        <el-descriptions-item label="施工地点">{{dataList.taskPlan.borerLoc}}</el-descriptions-item>
        <el-descriptions-item label="孔径">{{dataList.drillInf.poreSize}}</el-descriptions-item>
        <el-descriptions-item label="方位角">{{dataList.drillInf.mainAngle}}</el-descriptions-item>
        <el-descriptions-item label="人工计数">{{dataList.acceptInf.laborCount}}</el-descriptions-item>
        <el-descriptions-item label="钻孔类型">{{dataList.drillInf.borerType}}</el-descriptions-item>
        <el-descriptions-item label="倾角">{{dataList.drillInf.brakeTorque}}</el-descriptions-item>
        <el-descriptions-item label="开孔高度">{{dataList.drillInf.poreHigh}}</el-descriptions-item>
        <el-descriptions-item label="当班进尺">{{dataList.acceptInf.classFootage}}</el-descriptions-item>
      </el-descriptions>
      <el-descriptions title="AI计数">
        <el-descriptions-item label="录制开始时间">{{dataList.aiInf.startTime}}</el-descriptions-item>
        <el-descriptions-item label="录制结束时间">{{dataList.aiInf.ddlTime}}</el-descriptions-item>
        <el-descriptions-item label="作业时长">{{dataList.aiInf.totalTime}}分钟</el-descriptions-item>
        <el-descriptions-item label="识别钻杆数">{{dataList.aiInf.countSum}}</el-descriptions-item>
        <el-descriptions-item label="完成率">{{wcl}}</el-descriptions-item>
        <el-button >        </el-button>
      </el-descriptions>
      <el-descriptions title="验收">
        <el-descriptions-item label="计划进尺">{{dataList.taskPlan.poreDepth}}</el-descriptions-item>
        <el-descriptions-item label="AI视频计数">{{dataList.aiInf.countSum}}</el-descriptions-item>
        <el-descriptions-item label="当班进尺">{{dataList.acceptInf.classFootage}}</el-descriptions-item>
        <el-descriptions-item label="验收计数">{{dataList.acceptInf.acceptCount}}</el-descriptions-item>
        <el-descriptions-item label="视频验收情况">{{dataList.acceptInf.videoCondition}}</el-descriptions-item>
        <el-descriptions-item label="验收人">{{dataList.taskPlan.acceptorName}}</el-descriptions-item>
        <el-descriptions-item label="验收意见">{{dataList.acceptInf.overallOpinion}}</el-descriptions-item>
        <el-descriptions-item label="验收时间">{{dataList.acceptInf.acceptTime}}</el-descriptions-item>
      </el-descriptions>
    </el-container>


    <el-dialog :title="title" :visible.sync="open" width="800px" append-to-body>
      <video src=""></video>
    </el-dialog>
  </div>
</template>

<script>
import { getS } from "@/api/system/sss";

export default {
  name: "Pore",
  dicts: ['sys_normal_disable'],
  data() {
    return {
      t:1,
      wcl:undefined,
      // 数据
      dataList: [],
    };
  },
  beforeCreate() {

  },
  created() {
    this.first_one();
  },
  methods: {
    first_one(){
      getS(this.$route.query.id).then(response =>{
        this.dataList=response.data;
        if(this.dataList.aiInf!=null)
        {
          this.wcl = this.dataList.aiInf.countSum / this.dataList.taskPlan.poreDepth;
          this.wcl = Number(this.wcl * 100).toFixed(1) + '%';
        }
      })
    },
  }
};
</script>
